package com.nxy.cpfsfe.mybatis.pojo;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 批量入账明细表
 * @author 
 */
public class TdBatchA implements Serializable {
    private Long id;
    //报文标识
    private String msgId;

    /**
     * 批次号
     */
    private String batNo;
    //流水号
    private String seqNo;
    //请求系统编号
    private String reqSysId;
    //结算原交易方向
    private String xDir;
    //汇兑标识 1、普通汇兑 2、退汇
    private String rmFlg;
    //订单号
    private String ordNo;
    //支付类型
    private String pTyp;
    //一级商户号
    private String merId;
    //二级商户号
    private String merId2;
    //付款方成员行行号
    private String pyrBNo;
    //付款方成员行名称
    private String pyrBNm;
    //付款方编号
    private String pyrA;
    //付款行行号
    private String pyrBnakNo;
    //付款开户行号
    private String pyrOpenABNo;
    //付款开户行名字
    private String pyrOpenABNm;
    //收款开户行号
    private String pyeBnakNo;
    private String pyeOpenABNo;
    //收款行行名字
    private String pyeOpenABNm;
    //原报文标识号
    private String orgnMsgId;
    //原发起行行号
    private String origInstgPty;
    //原报文编号
    private String orgMsgCd;
    //退汇原因
    private String retResn;
    //附加字段
    private String addInfo;
    private String pyrNm;
    //收款方成员行行号
    private String pyeBNo;
    //收款方成员行名称
    private String pyeBNm;
    //收款方编号
    private String pyeA;
    //收款方成员行名称
    private String pyeNm;
    //支付/退款金额
    private BigDecimal xAmt;
    //一级商户利润 返还利润
    private BigDecimal yrAmt;
    //二级商户支付 退款金额
    private BigDecimal xAmt2;
    //商户备注
    private String merRmk;
    //业务流水
    private String stlSeqNo;

    /**
     * 结算状态：20--成功 ，30--失败
     */
    private String stlSta;
    //失败原因
    private String errRsn;
    //创建日期时间
    private Date creTm;
    //更新日期时间
    private Date updTm;
    //旧的结算状态信息
    private String oldStlSta;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getBatNo() {
        return batNo;
    }

    public void setBatNo(String batNo) {
        this.batNo = batNo;
    }

    public String getSeqNo() {
        return seqNo;
    }

    public void setSeqNo(String seqNo) {
        this.seqNo = seqNo;
    }

    public String getxDir() {
        return xDir;
    }

    public void setxDir(String xDir) {
        this.xDir = xDir;
    }

    public String getOrdNo() {
        return ordNo;
    }

    public void setOrdNo(String ordNo) {
        this.ordNo = ordNo;
    }

    public String getpTyp() {
        return pTyp;
    }

    public void setpTyp(String pTyp) {
        this.pTyp = pTyp;
    }

    public String getMerId() {
        return merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    public String getRmFlg() {
        return rmFlg;
    }

    public void setRmFlg(String rmFlg) {
        this.rmFlg = rmFlg;
    }

    public String getMerId2() {
        return merId2;
    }

    public void setMerId2(String merId2) {
        this.merId2 = merId2;
    }

    public String getPyrBNo() {
        return pyrBNo;
    }

    public void setPyrBNo(String pyrBNo) {
        this.pyrBNo = pyrBNo;
    }

    public String getPyrBNm() {
        return pyrBNm;
    }

    public void setPyrBNm(String pyrBNm) {
        this.pyrBNm = pyrBNm;
    }

    public String getPyrA() {
        return pyrA;
    }

    public void setPyrA(String pyrA) {
        this.pyrA = pyrA;
    }

    public String getPyrNm() {
        return pyrNm;
    }

    public void setPyrNm(String pyrNm) {
        this.pyrNm = pyrNm;
    }

    public String getPyeBNo() {
        return pyeBNo;
    }

    public void setPyeBNo(String pyeBNo) {
        this.pyeBNo = pyeBNo;
    }

    public String getPyeBNm() {
        return pyeBNm;
    }

    public void setPyeBNm(String pyeBNm) {
        this.pyeBNm = pyeBNm;
    }

    public String getPyeA() {
        return pyeA;
    }

    public void setPyeA(String pyeA) {
        this.pyeA = pyeA;
    }

    public String getPyeNm() {
        return pyeNm;
    }

    public void setPyeNm(String pyeNm) {
        this.pyeNm = pyeNm;
    }

    public BigDecimal getxAmt() {
        return xAmt;
    }

    public void setxAmt(BigDecimal xAmt) {
        this.xAmt = xAmt;
    }

    public BigDecimal getYrAmt() {
        return yrAmt;
    }

    public void setYrAmt(BigDecimal yrAmt) {
        this.yrAmt = yrAmt;
    }

    public BigDecimal getxAmt2() {
        return xAmt2;
    }

    public void setxAmt2(BigDecimal xAmt2) {
        this.xAmt2 = xAmt2;
    }

    public String getMerRmk() {
        return merRmk;
    }

    public void setMerRmk(String merRmk) {
        this.merRmk = merRmk;
    }

    public String getStlSeqNo() {
        return stlSeqNo;
    }

    public void setStlSeqNo(String stlSeqNo) {
        this.stlSeqNo = stlSeqNo;
    }

    public String getStlSta() {
        return stlSta;
    }

    public void setStlSta(String stlSta) {
        this.stlSta = stlSta;
    }

    public String getErrRsn() {
        return errRsn;
    }

    public void setErrRsn(String errRsn) {
        this.errRsn = errRsn;
    }

    public Date getCreTm() {
        return creTm;
    }

    public void setCreTm(Date creTm) {
        this.creTm = creTm;
    }

    public Date getUpdTm() {
        return updTm;
    }

    public void setUpdTm(Date updTm) {
        this.updTm = updTm;
    }

    public String getOldStlSta() {
		return oldStlSta;
	}

	public void setOldStlSta(String oldStlSta) {
		this.oldStlSta = oldStlSta;
	}

    public String getReqSysId() {
        return reqSysId;
    }

    public void setReqSysId(String reqSysId) {
        this.reqSysId = reqSysId;
    }

    public String getPyrBnakNo() {
        return pyrBnakNo;
    }

    public void setPyrBnakNo(String pyrBnakNo) {
        this.pyrBnakNo = pyrBnakNo;
    }

    public String getPyrOpenABNo() {
        return pyrOpenABNo;
    }

    public void setPyrOpenABNo(String pyrOpenABNo) {
        this.pyrOpenABNo = pyrOpenABNo;
    }

    public String getPyrOpenABNm() {
        return pyrOpenABNm;
    }

    public void setPyrOpenABNm(String pyrOpenABNm) {
        this.pyrOpenABNm = pyrOpenABNm;
    }

    public String getPyeBnakNo() {
        return pyeBnakNo;
    }

    public void setPyeBnakNo(String pyeBnakNo) {
        this.pyeBnakNo = pyeBnakNo;
    }

    public String getPyeOpenABNo() {
        return pyeOpenABNo;
    }

    public void setPyeOpenABNo(String pyeOpenABNo) {
        this.pyeOpenABNo = pyeOpenABNo;
    }

    public String getPyeOpenABNm() {
        return pyeOpenABNm;
    }

    public void setPyeOpenABNm(String pyeOpenABNm) {
        this.pyeOpenABNm = pyeOpenABNm;
    }

    public String getOrgnMsgId() {
        return orgnMsgId;
    }

    public void setOrgnMsgId(String orgnMsgId) {
        this.orgnMsgId = orgnMsgId;
    }

    public String getOrigInstgPty() {
        return origInstgPty;
    }

    public void setOrigInstgPty(String origInstgPty) {
        this.origInstgPty = origInstgPty;
    }

    public String getOrgMsgCd() {
        return orgMsgCd;
    }

    public void setOrgMsgCd(String orgMsgCd) {
        this.orgMsgCd = orgMsgCd;
    }

    public String getRetResn() {
        return retResn;
    }

    public void setRetResn(String retResn) {
        this.retResn = retResn;
    }

    public String getAddInfo() {
        return addInfo;
    }

    public void setAddInfo(String addInfo) {
        this.addInfo = addInfo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TdBatchA other = (TdBatchA) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMsgId() == null ? other.getMsgId() == null : this.getMsgId().equals(other.getMsgId()))
            && (this.getBatNo() == null ? other.getBatNo() == null : this.getBatNo().equals(other.getBatNo()))
            && (this.getSeqNo() == null ? other.getSeqNo() == null : this.getSeqNo().equals(other.getSeqNo()))
            && (this.getxDir() == null ? other.getxDir() == null : this.getxDir().equals(other.getxDir()))
            && (this.getOrdNo() == null ? other.getOrdNo() == null : this.getOrdNo().equals(other.getOrdNo()))
            && (this.getpTyp() == null ? other.getpTyp() == null : this.getpTyp().equals(other.getpTyp()))
            && (this.getMerId() == null ? other.getMerId() == null : this.getMerId().equals(other.getMerId()))
            && (this.getMerId2() == null ? other.getMerId2() == null : this.getMerId2().equals(other.getMerId2()))
            && (this.getPyrBNo() == null ? other.getPyrBNo() == null : this.getPyrBNo().equals(other.getPyrBNo()))
            && (this.getPyrBNm() == null ? other.getPyrBNm() == null : this.getPyrBNm().equals(other.getPyrBNm()))
            && (this.getPyrA() == null ? other.getPyrA() == null : this.getPyrA().equals(other.getPyrA()))
            && (this.getPyrNm() == null ? other.getPyrNm() == null : this.getPyrNm().equals(other.getPyrNm()))
            && (this.getPyeBNo() == null ? other.getPyeBNo() == null : this.getPyeBNo().equals(other.getPyeBNo()))
            && (this.getPyeBNm() == null ? other.getPyeBNm() == null : this.getPyeBNm().equals(other.getPyeBNm()))
            && (this.getPyeA() == null ? other.getPyeA() == null : this.getPyeA().equals(other.getPyeA()))
            && (this.getPyeNm() == null ? other.getPyeNm() == null : this.getPyeNm().equals(other.getPyeNm()))
            && (this.getxAmt() == null ? other.getxAmt() == null : this.getxAmt().equals(other.getxAmt()))
            && (this.getYrAmt() == null ? other.getYrAmt() == null : this.getYrAmt().equals(other.getYrAmt()))
            && (this.getxAmt2() == null ? other.getxAmt2() == null : this.getxAmt2().equals(other.getxAmt2()))
            && (this.getMerRmk() == null ? other.getMerRmk() == null : this.getMerRmk().equals(other.getMerRmk()))
            && (this.getStlSeqNo() == null ? other.getStlSeqNo() == null : this.getStlSeqNo().equals(other.getStlSeqNo()))
            && (this.getStlSta() == null ? other.getStlSta() == null : this.getStlSta().equals(other.getStlSta()))
            && (this.getErrRsn() == null ? other.getErrRsn() == null : this.getErrRsn().equals(other.getErrRsn()))
            && (this.getCreTm() == null ? other.getCreTm() == null : this.getCreTm().equals(other.getCreTm()))
            && (this.getUpdTm() == null ? other.getUpdTm() == null : this.getUpdTm().equals(other.getUpdTm()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMsgId() == null) ? 0 : getMsgId().hashCode());
        result = prime * result + ((getBatNo() == null) ? 0 : getBatNo().hashCode());
        result = prime * result + ((getSeqNo() == null) ? 0 : getSeqNo().hashCode());
        result = prime * result + ((getxDir() == null) ? 0 : getxDir().hashCode());
        result = prime * result + ((getOrdNo() == null) ? 0 : getOrdNo().hashCode());
        result = prime * result + ((getpTyp() == null) ? 0 : getpTyp().hashCode());
        result = prime * result + ((getMerId() == null) ? 0 : getMerId().hashCode());
        result = prime * result + ((getMerId2() == null) ? 0 : getMerId2().hashCode());
        result = prime * result + ((getPyrBNo() == null) ? 0 : getPyrBNo().hashCode());
        result = prime * result + ((getPyrBNm() == null) ? 0 : getPyrBNm().hashCode());
        result = prime * result + ((getPyrA() == null) ? 0 : getPyrA().hashCode());
        result = prime * result + ((getPyrNm() == null) ? 0 : getPyrNm().hashCode());
        result = prime * result + ((getPyeBNo() == null) ? 0 : getPyeBNo().hashCode());
        result = prime * result + ((getPyeBNm() == null) ? 0 : getPyeBNm().hashCode());
        result = prime * result + ((getPyeA() == null) ? 0 : getPyeA().hashCode());
        result = prime * result + ((getPyeNm() == null) ? 0 : getPyeNm().hashCode());
        result = prime * result + ((getxAmt() == null) ? 0 : getxAmt().hashCode());
        result = prime * result + ((getYrAmt() == null) ? 0 : getYrAmt().hashCode());
        result = prime * result + ((getxAmt2() == null) ? 0 : getxAmt2().hashCode());
        result = prime * result + ((getMerRmk() == null) ? 0 : getMerRmk().hashCode());
        result = prime * result + ((getStlSeqNo() == null) ? 0 : getStlSeqNo().hashCode());
        result = prime * result + ((getStlSta() == null) ? 0 : getStlSta().hashCode());
        result = prime * result + ((getErrRsn() == null) ? 0 : getErrRsn().hashCode());
        result = prime * result + ((getCreTm() == null) ? 0 : getCreTm().hashCode());
        result = prime * result + ((getUpdTm() == null) ? 0 : getUpdTm().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", msgId=").append(msgId);
        sb.append(", batNo=").append(batNo);
        sb.append(", seqNo=").append(seqNo);
        sb.append(", xDir=").append(xDir);
        sb.append(", ordNo=").append(ordNo);
        sb.append(", pTyp=").append(pTyp);
        sb.append(", merId=").append(merId);
        sb.append(", merId2=").append(merId2);
        sb.append(", pyrBNo=").append(pyrBNo);
        sb.append(", pyrBNm=").append(pyrBNm);
        sb.append(", pyrA=").append(pyrA);
        sb.append(", pyrNm=").append(pyrNm);
        sb.append(", pyeBNo=").append(pyeBNo);
        sb.append(", pyeBNm=").append(pyeBNm);
        sb.append(", pyeA=").append(pyeA);
        sb.append(", pyeNm=").append(pyeNm);
        sb.append(", xAmt=").append(xAmt);
        sb.append(", yrAmt=").append(yrAmt);
        sb.append(", xAmt2=").append(xAmt2);
        sb.append(", merRmk=").append(merRmk);
        sb.append(", stlSeqNo=").append(stlSeqNo);
        sb.append(", stlSta=").append(stlSta);
        sb.append(", errRsn=").append(errRsn);
        sb.append(", creTm=").append(creTm);
        sb.append(", updTm=").append(updTm);
        sb.append("]");
        return sb.toString();
    }
}